<template>

  <div class="manage-notice-card" >
    <el-card>
      <div class="manage-notice-theme">系统公告</div>
      <div  v-for="item in noticeData">
        <p class="manage-notice-title">{{item.title}}</p>
        <div class="manage-notice-div">
          <span class="manage-notice-content">{{item.content}}</span>
          <span class="manage-notice-time" style="">{{item.time}}</span>
        </div>
      </div>
    </el-card>
  </div>

</template>

<script>

import request from "@/utils/request";
export default {
  data() {
    return {
      noticeData:[],

    }
  },
  created() {
    this.load()
  },
  // methods：本页面所有的点击事件或者其他函数定义区
  methods: {
    load() {
      request.get('/notice/selectAll').then(res => {
        console.log(res)
        if (res.code == '0') {
          console.log(res.data.list)
          this.noticeData = res.data
        }
        else
        {this.$message.error(res.msg)}
      })
    },
  }
}
</script>
<style>

</style>
